﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moonwish.Core;
using Moonwish.Foundation.BusinessComponent;
using Moonwish.Foundation.DataEntity;

namespace Moonwish.Foundation.Service.Test
{
    /// <summary>
    /// Summary description for ValueObjectTest
    /// </summary>
    [TestClass]
    public class ValueObjectTest
    {
        /// <summary>
        /// 新增值对象分类测试。
        /// </summary>
        [TestMethod]
        public void AddValueObjectClassTest()
        {
            var newClass = new V_FDT_ValueObjectClass
            {
                ValueObjectClassId = Guid.NewGuid().ToString(),
                Name = "学历",
                Code = "02",
                DataStatus = DataStatus.New.ToString()
            };
            var newVo = new V_FDT_ValueObject
                            {
                                ValueObjectId = Guid.NewGuid().ToString(),
                                ValueObjectClassId = newClass.ValueObjectClassId,
                                Name = "大学",
                                Code = "01",
                                DataStatus = DataStatus.New.ToString()
                            };
            newClass.V_FDT_ValueObjects.Add(newVo);

            var da = new ValueObjectClassBC();
            da.Add(new List<V_FDT_ValueObjectClass>{ newClass }, "default");
        }

        [TestMethod]
        public void QueryValueObjectClassTest()
        {
           
        }
    }
}
